/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package fr.smile.liferay.portlet.news.service.impl;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;

import fr.smile.liferay.portlet.news.model.NewsEntry;
import fr.smile.liferay.portlet.news.service.base.NewsEntryServiceBaseImpl;

/**
 * The implementation of the news entry remote service.
 *
 * <p>
 * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link fr.smile.liferay.portlet.news.service.NewsEntryService} interface.
 * </p>
 *
 * <p>
 * Never reference this interface directly. Always use {@link fr.smile.liferay.portlet.news.service.NewsEntryServiceUtil} to access the news entry remote service.
 * </p>
 *
 * <p>
 * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
 * </p>
 *
 * @author Brian Wing Shun Chan
 * @see fr.smile.liferay.portlet.news.service.base.NewsEntryServiceBaseImpl
 * @see fr.smile.liferay.portlet.news.service.NewsEntryServiceUtil
 */
public class NewsEntryServiceImpl extends NewsEntryServiceBaseImpl {

	public List<NewsEntry> findUnread(long userId, Map<Long, long[]> scopes, int start, int end) throws SystemException {
		return newsEntryLocalService.findUnread(userId, scopes, start, end);
	}

	public int countUnread(long userId, Map<Long, long[]> scopes) throws SystemException {
		return newsEntryLocalService.countUnread(userId, scopes);
	}

	public List<NewsEntry> findAll(long classNameId, long classPK, int start, int end) throws SystemException {
		return newsEntryLocalService.findAll(classNameId, classPK, start, end);
	}

	public int countAll(long classNameId, long classPK) throws SystemException {
		return newsEntryLocalService.countAll(classNameId, classPK);
	}

	public NewsEntry addEntry(long userId, long classNameId, long classPK,
			String title, String description, String content,
			Date displayDate, Date expirationDate) throws PortalException, SystemException {
		return newsEntryLocalService.addEntry(userId, classNameId, classPK, title, description, content, displayDate, expirationDate);
	}

	public NewsEntry updateEntry(long entryId,
			String title, String description, String content,
			Date displayDate, Date expirationDate) throws PortalException, SystemException {
		return newsEntryLocalService.updateEntry(entryId, title, description, content, displayDate, expirationDate);
	}

	public void deleteEntry(long entryId) throws PortalException, SystemException {
		newsEntryLocalService.deleteEntry(entryId);
	}

}
